import axios from 'axios'
import config from './config'
function upDynamic(data) {
    return axios({
        method: 'post',
        baseURL: config.host,
        url: '/dynamic/updata',
        data
    })
}

function dynamicData(id) {
    return axios({
        method: 'get',
        baseURL: config.host,
        url: '/dynamic/data',
        params: {
            id
        }
    })
}
export {
    upDynamic,
    dynamicData
}